@(openProjects: List[models.domain.Project])
@teacherMain(title = "Næstu skil") {
    <link rel="stylesheet" href="/public/stylesheets/exams.css">

    <div class="container">

        <div class="row">
            <div class="span12">
                <h3>Næstu skil</h3>
                <table class="table table-striped" cellpadding="0" cellspacing="0" border="0" class="display">
                    <thead>
                        <tr>
                            <th>Heiti</th>
                            <th>Fag</th>
                            <th>Lagt fyrir</th>
                            <th>Skilafrestur</th>
                            <th> Tegund </th>
                            <th>Vægi</th>
                        </tr>
                    </thead>
                    <tbody>
                        @for(project <- openProjects) {
                               <tr>
                                    <td> <a href="@{routes.TeacherController.teacherOneAssignment(project.getVerkefni_id,project.getHopur_id)}" class="blackLink"/> @project.getName </td>
                                    <td> @project.getCourse </td>
                                    <td> @project.getbeginDate() </td>
                                    <td> @project.getHandInDate </td>
                                    @if(project.getType == "verkefni"){
                                        <td> Verkefni </td>
                                    }else{
                                        <td> Próf </td>
                                        }
                                    <td> @(project.getWeight) % </td>

                                </tr>
                        }
                    </tbody>
                </table>
            </div>
        </div>
    </div>



}